import Vue from 'vue'
import App from './App.vue'
import router from "./router/index"
import "./assets/css/globel.css"
import store from "../vuex/store"
import uppertitle from "./components/uppertitle.vue"
// import ElementUI from 'element-ui';
// Vue.use(ElementUI);
//------------------------&&element-ui----------------------------------
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
import {
  Button,
  Input,
  Image,
  Form,
  FormItem,
  Message,
  Notification,
  Dialog,
  Table,
  TableColumn,
  Select,
  Checkbox,
  CheckboxGroup,
  Option,
  Pagination
} from 'element-ui';
Vue.use(FormItem)
Vue.use(Form)
Vue.use(Button)
Vue.use(Input)
Vue.use(Image)
Vue.use(Dialog)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Select)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Option)
Vue.use(Pagination)
Vue.prototype.$message = Message
Vue.prototype.$notify = Notification
//------------------------&&element-ui----------------------------------
// Vue.use(store)
//------------------------&&eventBus------------------------------------
Vue.prototype.$eventBus = new Vue();
//------------------------&&eventBus------------------------------------
//------------------------&&自定义全局组件------------------------------------
Vue.component("uppertitle", uppertitle)
//------------------------&&自定义全局组件------------------------------------
new Vue({
  store: store,
  router,
  render: h => h(App),
}).$mount('#app')